package com.ibeeking.found.cms.service.common.constants.enums;

/**
 * @Author ibeeking
 * @Date: 2021-01-05 19:15
 * @Description: PageModuleTypeEnum
 */
public enum PageModuleDataEnum {
    GOODS("goods"),
    GOODS_CATEGORY_ROOT("goods_category_root"),
    /**
     * 秒杀活动ids
     */
    SECKILL("seckill"),
    IDS("ids"),
    ID_OBJ_S("id_obj_s"),
    ACTIVITY_LIST("activity_list"),
    POINTS_EXCHANGE("id_obj_s"),
    GROUP_BOOKING("ids"),
    IMAGE_AD("imageList"),
    BASE_ITEMS("baseItems"),
    GOODS_GROUP("groups"),
    /**
     * 券组件-手动获取券
     */
    MARKETING_COUPON_MANUAL("couponArr"),
    /**
     * 券组件-自动获取券
     */
    MARKETING_COUPON_AUTO("couponAuto"),
    /**
     * 秒杀组件-场次list
     */
    MARKETING_SECKILL_ROUND_LIST("campaignSeckillRoundList"),
    /**
     * 专题文章组件-文章来源
     */
    ARTICLE_SOURCE("articleSource"),

    ;
    private String value;

    PageModuleDataEnum(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public static PageModuleDataEnum getEnum(Integer value) {
        for (PageModuleDataEnum enumObj : values()) {
            if (enumObj.getValue().equals(value)) {
                return enumObj;
            }
        }
        return null;
    }
}
